import request from '@/utils/request'

// 查询考勤时间段(task_work_team子)列表
export function listSpan(query) {
  return request({
    url: '/task/span/list',
    method: 'get',
    params: query
  })
}

// 查询考勤时间段(task_work_team子)详细
export function getSpan(teamSpanId) {
  return request({
    url: '/task/span/' + teamSpanId,
    method: 'get'
  })
}

// 新增考勤时间段(task_work_team子)
export function addSpan(data) {
  return request({
    url: '/task/span',
    method: 'post',
    data: data
  })
}

// 修改考勤时间段(task_work_team子)
export function updateSpan(data) {
  return request({
    url: '/task/span',
    method: 'put',
    data: data
  })
}

// 删除考勤时间段(task_work_team子)
export function delSpan(teamSpanId) {
  return request({
    url: '/task/span/' + teamSpanId,
    method: 'delete'
  })
}

// 导出考勤时间段(task_work_team子)
export function exportSpan(query) {
  return request({
    url: '/task/span/export',
    method: 'get',
    params: query
  })
}